package com.fei.service;

import com.fei.bean.MusicBean;
import com.fei.mapper.MusicMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MusicServiceImpl implements MusicService{

    @Autowired
    MusicMapper musicMapper;

    @Override
    public List<MusicBean> selectMusicEightService() {
        return musicMapper.selectMusicEight();
    }

    @Override
    public Integer selectOneSongerNameService(String songName) {
        return musicMapper.selectOneSongerName(songName);
    }

    @Override
    public List<MusicBean> selectOneSingerIdAllService(int singer_id) {
        return musicMapper.selectOneSingerIdAll(singer_id);
    }

    @Override
    public List<MusicBean> findAllMusicService() {
        return musicMapper.findAllMusic();
    }

}
